package com.wnx.job.common.mapstruct;


import com.wnx.job.modules.nms.dto.ChannelParam;
import com.wnx.job.modules.nms.model.NmsChannel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author wangnaixing
 */
@Mapper
public interface ChannelMapper {

    ChannelMapper INSTANCE = Mappers.getMapper(ChannelMapper.class);

    /**
     * 咨询栏目Dto转栏目模型
     * @param channelParam
     * @return
     */
    NmsChannel toPojo(ChannelParam channelParam);

    /**
     * 咨询栏目模型转咨询栏目Dto
     * @param tbChannel
     * @return
     */
    ChannelParam toDto(NmsChannel tbChannel);

    /**
     * 咨询栏目模型集合转咨询栏目Dto集合
     * @param tbChannelList
     * @return
     */
    List<ChannelParam> toDtoList(List<NmsChannel> tbChannelList);


}
